package com.zack.gank.gankandroid.main.find;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.zack.gank.gankandroid.gankandroid.R;
import com.zack.gank.gankandroid.main.LzyFragment;
import com.zack.gank.gankandroid.main.find.bean.AndroidGank;
import com.zack.gank.gankandroid.utils.InterfaceUtils;
import com.zack.gank.gankandroid.utils.StringUtils;

/**
 * Created by Android on 2017/7/28.
 */

public class VideoFindFragment extends LzyFragment implements FindVideoView{

    private RecyclerView rlvFind;
    private SmartRefreshLayout srlSelectFind;
    private FindVideoPresenter findVideoPresenter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fg_find_select, container, false);
        rlvFind= (RecyclerView) view.findViewById(R.id.rlv_find);
        srlSelectFind= (SmartRefreshLayout) view.findViewById(R.id.srl_select_find);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }

    @Override
    protected void loadData() {
        findVideoPresenter=new FindVideoPresenter();
        findVideoPresenter.setGankNumPager(InterfaceUtils.typeVideoData,"20","1");
    }

    @Override
    public void onSucess(AndroidGank androidGank) {

    }

    @Override
    public void onFile(Throwable t) {

    }
}
